//
//  SelectViewController.m
//  ZHIFUBAO
//
//  Created by 高新川 on 15/6/19.
//  Copyright (c) 2015年 高新川. All rights reserved.
//

#import "SelectViewController.h"
#import "ServiceModal.h"
#import "UIColor+Hex.h"

@interface SelectViewController ()

@end

@implementation SelectViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (id)initWithUnitl:(ServiceUnitl *)unitl {
    self = [super init];
    if (self) {
        //self.navigationController.navigationBar.backgroundColor = [UIColor colorWithHexString:@"4A708B" alpha:1.0];
        self.view.backgroundColor = [UIColor whiteColor];
        self.title = unitl.title;
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(backService)];
        self.navigationItem.leftBarButtonItem.tintColor = [UIColor blackColor];
    }
    return self;
}

- (void)backService {
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
